package com.smedi.ismedi.inmail.core.port.adapter.service;

import com.smedi.ismedi.constructionproject.api.dto.response.resp.ProjectResp;
import com.smedi.ismedi.constructionproject.api.dto.response.resp.ProjectWithDingResp;
import com.smedi.ismedi.inmail.core.domain.dto.ProjectQuery;

import java.util.List;

/**
 * @Author Cookie
 * @Date 2022/7/19
 */
public interface ProjectRemoteService {

    /**
     * 项目 获取 列表
     *
     * @param projectQuery 项目查询
     * @return Project
     */
    List<ProjectResp> getProjectList(ProjectQuery projectQuery);

    /**
     * 项目 获取 列表
     *
     * @param projectQuery 项目查询
     * @return Project
     */
    List<ProjectResp> getProjectListWithOutToken(ProjectQuery projectQuery);

    /**
     * 根据组织ID获取项目列表
     *
     * @param orgId 组织ID
     * */
    List<ProjectWithDingResp> getProjectResponseDataByOrgId(Long orgId,List<Long> projectIds);

    /**
     * 根据组织ID获取项目列表
     *
     * @param orgId 组织ID
     * */
    List<ProjectWithDingResp> getProjectResponseDataByOrgId(Long orgId);

    ProjectWithDingResp getProjectById(Long id);

    Integer getProjectCount(ProjectQuery projectQuery);
}
